#!/bin/bash
echo "**** deploy wechat project ****"
cd /sandbox/evantang/SecurityWechat/Security-Wechat/
# find . ! -name '.git' -type f -exec rm -f {} +
rm -rf assets
rm -f *.js
rm -f *.txt
rm -f *.woff2
rm -f *.svg
rm -f *.woff
rm -f *.ttf
rm -f *.eot
rm -f *.png
rm -f *.ico
rm -f *.html
rm -f *.css

cd -
ng build --prod --bh /sec/ --aot=false
cp -r dist/* /sandbox/evantang/SecurityWechat/Security-Wechat/

cd /sandbox/evantang/SecurityWechat/Security-Wechat/
git add .
git commit -m 'update wechat project'
git push

echo "**** deploy wechat project finished ****"
